import java.util.ArrayList;

//medium
public class Salamander extends Pet {


	public Salamander(String petName, int petXP, int petDamageTaken, int petDef, int petStr, int petSpd, int petSize, ArrayList<AttackName> petAttacks) {
		super(petName, "Den enda dinosaurien fortfarande vid liv. Sprutar eld på oskyldiga varelser, för skojs skull.", Type.Fire, petXP, petDamageTaken, petDef, petStr, petSpd, petSize, petAttacks,"/petsPictures/dragonFront.gif","/petsPictures/dragonBack.gif");

	}

	public Salamander(String petName, int petExp) {
		super(petName, "Den enda dinosaurien fortfarande vid liv. Sprutar eld på oskyldiga varelser, för skojs skull.", Type.Fire, petExp, 13, 13, 8, 361, new Salamander().startingAttacks(petExp), "/petsPictures/dragonFront.gif","/petsPictures/dragonBack.gif");
	}
	
	public Salamander(){
		super();
	}
	
	public ArrayList<AttackName> startingAttacks(int exp) {
		int xp = exp;
		ArrayList<AttackName> attacks = new ArrayList<AttackName>();
		
		if (xp == -1){
			return attacks;
		}
		
		if(xp<100){
		attacks.add(AttackName.NippleTwist);
		return attacks;
		}
		else if(xp < 200){
		attacks.add(AttackName.NippleTwist);
		attacks.add(AttackName.Eldrustning);
		return attacks;
		}
		else if(xp<400){
			attacks.add(AttackName.NippleTwist);
			attacks.add(AttackName.Eldrustning);
			attacks.add(AttackName.Eldslag);
			return attacks;
		}
		else if(xp<600){
			attacks.add(AttackName.NippleTwist);
			attacks.add(AttackName.Eldrustning);
			attacks.add(AttackName.Eldslag);
			attacks.add(AttackName.Rökridå);
			return attacks;
		}
		else if(xp<800){
			attacks.add(AttackName.NippleTwist);
			attacks.add(AttackName.EldIllussion);
			attacks.add(AttackName.Eldslag);
			attacks.add(AttackName.Rökridå);
			return attacks;
		}
		else{
			attacks.add(AttackName.NippleTwist);
			attacks.add(AttackName.EldIllussion);
			attacks.add(AttackName.Eldslag);
			attacks.add(AttackName.Pungspark);
			return attacks;
		}
	}
		public Salamander(String petName, ArrayList<AttackName> petAttacks) {

		super(petName, "Skriv något här pls.", Type.Fire, 0, 0, 13, 13, 8, 361, petAttacks,"petsPictures/SalamanderFront.gif","petsPictures/SalamanderBack.gif");
	}


	public Pet copy() {
		Salamander duplicate = new Salamander(name, currentXP, damageTaken, defense, strength, speed, size, attacks);
		duplicate.energy = energy;
		return duplicate;
	}
	public Pet copy(int exp) {
		Salamander duplicate = new Salamander(name, exp);
		duplicate.energy = energy;
		return duplicate;
	}

	
}

	



